package com.youlu.campus.admin.auth.shiro.token;


import com.youlu.campus.admin.auth.common.DeviceType;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

/**
 * Created by zhuhuaiqi on 2018/03/21.
 *
 * @author zhuhuaiqi
 * @since 2018/03/21
 */
public class AuthPrincipal implements Serializable {

    String uid;

    String loginName;

    String comId;

    String domain;

    long gmtCreate;

    int expiresIn;

    Set<String> roles;

    DeviceType deviceType;

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getComId() {
        return comId;
    }

    public void setComId(String comId) {
        this.comId = comId;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public long getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(long gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public int getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(int expiresIn) {
        this.expiresIn = expiresIn;
    }

    public Set<String> getRoles() {
        return roles;
    }

    public void setRoles(Set<String> roles) {
        this.roles = roles;
    }

    public DeviceType getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(DeviceType deviceType) {
        this.deviceType = deviceType;
    }
}
